package com.ecut.property_project.service.base;

import com.ecut.property_project.mapper.base.BaseRegionMapper;
import com.ecut.property_project.model.base.BaseRegion;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class BaseRegionService{

    @Resource
    private BaseRegionMapper baseRegionMapper;

    public int getCount(){return baseRegionMapper.getCount();}

    
    public int deleteByPrimaryKey(Integer id) {
        return baseRegionMapper.deleteByPrimaryKey(id);
    }

    
    public int insert(BaseRegion record) {
        return baseRegionMapper.insert(record);
    }

    
    public int insertSelective(BaseRegion record) {
        return baseRegionMapper.insertSelective(record);
    }

    public List<BaseRegion> selectAll(){
        return baseRegionMapper.selectAll();
    }

    public List<BaseRegion> selectByPage(Integer page, Integer pageSize){return baseRegionMapper.selectByPage(page,pageSize);}

    public BaseRegion selectByPrimaryKey(Integer id) {
        return baseRegionMapper.selectByPrimaryKey(id);
    }

    
    public int updateByPrimaryKeySelective(BaseRegion record) {
        return baseRegionMapper.updateByPrimaryKeySelective(record);
    }

    
    public int updateByPrimaryKey(BaseRegion record) {
        return baseRegionMapper.updateByPrimaryKey(record);
    }

}
